package com.example.servicebase.client;

import com.example.commonutils.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-vod",fallbackFactory = VodClientFallbackFactory.class)
public interface VodClient {
    //teacher模块向vod模块发起远程调用
    @DeleteMapping(value = "/eduvod/video/removeVideo/{id}")
    ResultData removeVideo(@PathVariable("id") String id);

    //  根据视频id获取视频凭证
    @GetMapping("/eduvod/video/getPlayAuth/{id}")
    String getPlayAuth(@PathVariable("id") String id);
}
